Ensure no more binaries are checked in
authorAlex Crichton <alex@alexcrichton.com>
Sat, 5 Jul 2014 23:55:26 +0000 (16:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 8 Jul 2014 15:02:00 +0000 (08:02 -0700)
Closes #58

Makefile
src/bin/cargo-build.rs [changed mode: 0755->0644]
src/bin/cargo-test.rs [changed mode: 0755->0644]
src/bin/cargo-verify-project.rs [changed mode: 0755->0644]
src/bin/cargo.rs [changed mode: 0755->0644]

index d1954d2e580e5dc5300593258d93aee4dafc6c94..002d113c8ad1b1f8c5efadfb29c220190074fba1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -74,11 +74,16 @@ test-unit: target/tests/test-unit
 test-integration: target/tests/test-integration
        $< $(only)
 
-test: test-unit test-integration style
+test: test-unit test-integration style no-exes
 
 style:
        sh tests/check-style.sh
 
+no-exes:
+       find $$(git ls-files) -perm +111 -type f \
+               -not -name '*.sh' -not -name '*.rs' | grep '.*' \
+               && exit 1 || exit 0
+
 clean:
        rm -rf target
 
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)